<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var i,a,b,k,num;
        for(i=1;i<6;i++){
            for(a=0;a<i;a++){
                document.write('*');
            }
            document.write('<br>')
        }
        document.write('<br><br>');
        for(b=1;b<10;b++){
            for(k=1;k<=b;k++){
                num=b*k;
                document.write(k+'*'+b+'='+num+'&nbsp;&nbsp;&nbsp;&nbsp;');
            }
            document.write('<br>')
        }
    </script>
</body>
</html>